package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

@TableName(value = "stuinfo")
public class Student extends Model<Student> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(value="stuid", type= IdType.AUTO)
    private Integer stuid;
    private String stuname;
    private Integer sex;
    private String grade;
    private String school;
    private String major;
    private String region;
    private String contact;
    private String qq;
    private String address;
    private String workstate;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getStuid() {
        return stuid;
    }

    public void setStuid(Integer stuid) {
        this.stuid = stuid;
    }

    public String getStuName() {
        return stuname;
    }

    public void setStuName(String stuName) {
        this.stuname = stuName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWorkstate() {
        return workstate;
    }

    public void setWorkstate(String workstate) {
        this.workstate = workstate;
    }

    @Override
    public String toString() {
        return "Student{" +
                "uid=" + stuid +
                ", uname='" + stuname + '\'' +
                ", sex=" + sex +
                ", grade='" + grade + '\'' +
                ", school='" + school + '\'' +
                ", major='" + major + '\'' +
                ", region='" + region + '\'' +
                ", contact='" + contact + '\'' +
                ", qq='" + qq + '\'' +
                ", address='" + address + '\'' +
                ", workstate='" + workstate + '\'' +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.stuid;
    }
}
